package refactor.extractsubclass.result;

public class JobItem {
    private int unitPrice;
    protected int quantity;

    public JobItem() {
    }

    public JobItem(int unitPrice, int quantity) {
        this.unitPrice = unitPrice;
        this.quantity = quantity;
    }

    public int calcTotalPrice() {
        return getUnitPrice() * quantity;
    }

    public int getUnitPrice() {
        return unitPrice;
    }

}
